package com.xxx.zkconfig.helper;

import java.util.*;
import java.util.concurrent.ConcurrentHashMap;

/**
 * Created by duke on 15/6/20.
 */
public class PropertyReader {




    private static final Map<String, Object> cache = new ConcurrentHashMap<>();


    private static final Properties prop = new Properties();


    static {
        init();
    }


    public static Map<String, Object> getCache() {
        return cache;
    }

    public static Properties getProp() {
        return prop;
    }


    public static void init() {
        cache.put("spring.datasource.driver-class-name", "com.mysql.cj.jdbc.Driver");
        cache.put("spring.datasource.url", "jdbc:mysql://47.92.208.251:3306/test?serverTimezone=UTC");
        cache.put("spring.datasource.username", "liveimage");
        cache.put("spring.datasource.password", "micro1q2w3e4r@");
        cache.put("server.port", "8081");
    }


}